<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">账号与安全</block>
      </fu-custom>

      <view class="flex flex-direction flex-wrap align-stretch cardAndSafe_flex_1">
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' @tap.stop="isSetPsawdFunc()">
          <text class='cardAndSafe_fd1_0_c0'>修改密码</text>
          <image class='cardAndSafe_fd1_0_c1' mode="aspectFit" :src='STATIC_URL+"right1.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/xtsz/changePayPwd/changePayPwd`">
          <text class='cardAndSafe_fd1_0_c0'>修改支付密码</text>
          <image class='cardAndSafe_fd1_0_c1' mode="aspectFit" :src='STATIC_URL+"right1.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_2' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/xtsz/changeBingDingPhone/changeBingDingPhone`">
          <text class='cardAndSafe_fd1_0_c0'>修改绑定手机号</text>
          <image class='cardAndSafe_fd1_0_c1' mode="aspectFit" :src='STATIC_URL+"right1.png"'></image>
        </view>
      </view>




    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataBack": {
          "falg": ""
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //是否设置支付密码
      async isSetPsawdFunc() {
        //请求方法
        //数据验证

        let datadataBack = await this.$api.get(global.apiUrls.post651fc90e80fd4, {

        });

        if (datadataBack.data.code != 1) {
          this.$message.info(datadataBack.data.msg);
          return
        }
        let infodataBack = datadataBack.data;
        this.dataBack = infodataBack.data

        if (this.dataBack.falg == '1') {
          this.$urouter.navigateTo(`/pages/xtsz/changePwd/changePwd`);
        } else {
          this.$message.info('请先设置登录密码');
          setTimeout(() => {
            this.$urouter.navigateTo(`/pages/xtsz/changePwdPhoneCode/changePwdPhoneCode`);
          }, 500)
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .cardAndSafe_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .cardAndSafe_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 100rpx;
  }

  .cardAndSafe_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
    line-height: 50rpx;
  }

  .cardAndSafe_fd0_0_c0_c0 {
    font-size: 36rpx;
    font-weight: 400;
    color: #333;
  }

  .cardAndSafe_fd0_0_c0 {
    width: 100rpx;
  }

  .cardAndSafe_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .cardAndSafe_flex_1 {
    background: #fff;
    font-size: 32rpx;
    background-size: 100% auto !important;
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .cardAndSafe_fd1_2 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .cardAndSafe_fd1_0_c1 {
     width: 14rpx;
        height: 26rpx;
    font-size: 26rpx;
    color: rgba(191, 191, 191, 1);
    font-weight: 400;
  }

  .cardAndSafe_fd1_0_c0 {
    font-size: 32rpx;
    font-weight: 400;
    color: var(--benbenFontColor0);
  }

  .cardAndSafe_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }
</style>
